package comone.javaone;

public class Touirst {
    String name;
    int age;

    //打印信息
    public void print(String name,int age){
        if(age>12){
            int price=20;
            System.out.println(name+"的年龄是"+age+"门票价格是"+price);
        }else {
            System.out.println(name+"的年龄是"+age+",门票免费");
        }

    }

}
